﻿using MauiSampleDemo.Samples.DatabaseOperate;
using MauiSampleDemo.Samples.StatusBarSetting;

namespace MauiSampleDemo
{
    public partial class App : Application
    {
        public static IServiceProvider ServiceProvider { get; private set; }
        public App(IServiceProvider serviceProvider)
        {
            InitializeComponent();
            ServiceProvider = serviceProvider;
        }

        protected override Window CreateWindow(IActivationState? activationState)
        {

            //var window = new Window(new AppShell());
            //var window = new Window(new DatabaseOperatePage()); 
            //var window = new Window(new StatusBarSettingPage());
            var window = new Window(new NavigationPage(new MainPage()));
            return window;
        }
    }
}